package br.ufrj.dcc.tp.unitTest.driver;

public class ThreadApplication extends Thread {
	private MainTest main;
	
	public ThreadApplication(Class<? extends MainTest> klass) throws InstantiationException, IllegalAccessException {
		main = klass.newInstance();
	}
	
	@Override
	public void run() {
		main.run();
	}
	
	public MainTest getMainTest() {
		return main;
	}
}